<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>超链接校验</title>
    <script>
        function confirmDelete(){
            let flag = confirm("是否确认删除");
            return flag;
        }
    </script>
</head>
<body>
<a href="30-表单校验.html" onclick="return confirmDelete()">删除</a><br>
<a href="30-表单校验.html" onclick="return confirm('是否确认删除');">删除</a>
</body>
</html>